package com.erp.pp.service;

import com.erp.pp.entity.TPpOrderBomEntity;
import com.erp.pp.entity.TPpOrderEntity;
import com.erp.pp.entity.TPpOrderRoutingEntity;
import org.jeecgframework.core.common.service.CommonService;

import java.util.List;

public interface TPpOrderServiceI extends CommonService {
	
 	public <T> void delete(T entity);
	/**
	 * 添加一对多
	 * 
	 */
	public void addMain(TPpOrderEntity tPpOrder,
                        List<TPpOrderBomEntity> tPpOrderBomList, List<TPpOrderRoutingEntity> tPpOrderRoutingList) ;
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(TPpOrderEntity tPpOrder,
                           List<TPpOrderBomEntity> tPpOrderBomList, List<TPpOrderRoutingEntity> tPpOrderRoutingList);
	public void delMain(TPpOrderEntity tPpOrder);
	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(TPpOrderEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(TPpOrderEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(TPpOrderEntity t);
}
